Skip to content

Add regression test: #10043, backtick should not report unexpected keyword#19476

Merged
T-Gro merged 2 commits intomainfrom
regression-test/issue10043
Apr 10, 2026
Merged

Add regression test: #10043, backtick should not report unexpected keyword#19476
T-Gro merged 2 commits intomainfrom
regression-test/issue10043

Conversation

@T-Gro
Copy link
Copy Markdown
Member

@T-Gro T-Gro commented Mar 24, 2026

Adds a regression test for #10043

Verifies that let i:float1 = 3.0` produces FS3563 ("This is not a valid identifier") instead of the previous confusing "Unexpected reserved keyword" message.

Fixes #10043

@T-Gro T-Gro requested a review from a team as a code owner March 24, 2026 10:42
@T-Gro T-Gro added NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes AI-Issue-Regression-PR PR adding regression test for a closed issue labels Mar 24, 2026
@T-Gro T-Gro requested a review from abonie March 24, 2026 10:42
@T-Gro T-Gro enabled auto-merge (squash) March 24, 2026 10:42
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@auduchinok
Copy link
Copy Markdown
Member

The backticks cases were added in the previous PRs. It's more interesting to see if there are any @ or ! cases.

@T-Gro T-Gro force-pushed the regression-test/issue10043 branch 2 times, most recently from f498636 to e7b6ee5 Compare March 24, 2026 13:16
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Mar 30, 2026
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

Commit pushed: 3c1ebc9

Generated by Regression PR Shepherd

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026


Warning

The push_to_pull_request_branch operation failed: Cannot push to pull request branch: patch modifies protected files (.github/agents/agentic-workflows.agent.md, .github/aw/actions-lock.json, .github/workflows/regression-pr-shepherd.lock.yml, .github/workflows/repo-assist.lock.yml, .github/workflows/repo-assist.md, .github/workflows/aw-auto-update.lock.yml, .github/workflows/aw-auto-update.md, .github/workflows/regression-pr-shepherd.md, .github/skills/fsharp-diagnostics/SKILL.md). Add them to the allowed-files configuration field or set protected-files: fallback-to-issue to create a review issue instead.. The code changes were not applied.

🤖 This is an automated response from Regression PR Shepherd.

Resolved the merge conflict by merging current main into the branch. The conflict was in DiagnosticRegressionTests.fs — the Issue 7177 test was added to main independently, causing a content conflict with the PR's Issue 10043 tests. Both are now present.

The PR diff against main is clean: 1 file changed (+37 lines), adding only the 3 Issue 10043 regression tests.

CI will need maintainer workflow approval to run.

@T-Gro @abonie — could you approve the workflow run?

Generated by Regression PR Shepherd · ● 10.9M ·

@github-actions github-actions bot mentioned this pull request Apr 9, 2026
@T-Gro T-Gro force-pushed the regression-test/issue10043 branch 2 times, most recently from 0170b89 to ca65022 Compare April 9, 2026 15:27
Verifies that type annotations with invalid characters produce clear error messages:
- backtick: FS3563 'This is not a valid identifier'
- at sign: FS0615 'Unexpected infix operator in type expression'
- bang: FS1141 'Identifiers followed by ! are reserved for future use'

Fixes #10043

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro force-pushed the regression-test/issue10043 branch from 7e30d3f to 532b542 Compare April 9, 2026 19:25
@T-Gro T-Gro merged commit 98c4774 into main Apr 10, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-Issue-Regression-PR PR adding regression test for a closed issue NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Unexpected keyword error when there's no keyword

3 participants